<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateGongrsTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('gongrs', function(Blueprint $table)
		{
			$table->increments('id');
			$table->string('gr_name')->unique();
			$table->string('gr_no')->nullable();
			$table->string('gr_sex')->nullable();
			$table->string('banz')->nullable()->default('不是');
			$table->string('gr_gzs')->nullable();
			$table->string('gr_gz')->nullable();
			$table->integer('gr_gzi')->nullable();
			$table->integer('gr_intime')->nullable();
			$table->string('gr_bz')->nullable();
			$table->string('gb_name')->nullable();
			$table->integer('out')->nullable();
			$table->date('outDate')->nullable();
			$table->timestamps();
		});
	}


	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('gongrs');
	}

}
